package com.appbee.user.server.service;

import javax.inject.Inject;
import javax.inject.Provider;

import com.appbee.user.server.dao.AccessControl;
import com.appbee.user.server.model.WebUser;
import com.google.appengine.api.users.UserService;

public class UserServiceWrapper
{
	final UserService service;
	private final Provider<AccessControl> accessControlProvider;
	
	@Inject
	public UserServiceWrapper(Provider<AccessControl> accessControlProvider,
			UserService service)
	{
		this.accessControlProvider = accessControlProvider;
		this.service = service;
	}

	public WebUser getCurrentUser(String destinationURL)
	{
		return accessControlProvider.get().getCurrentUser(destinationURL);
	}

}
